package com.ccp.dev.workflow.service;

import com.ccp.dev.core.basic.base.BaseService;
import com.ccp.dev.workflow.dao.BpmFlowUserHistoryDao;
import com.ccp.dev.workflow.model.BpmFlowUserHistory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * ClassDescribe:
 * 指定任务执行人历史业务逻辑层
 * @author :wangcheng
 * Date: 2019-07-24
 */
@Service
public class BpmFlowUserHistoryService extends BaseService<BpmFlowUserHistory> {
    @Resource
    private BpmFlowUserHistoryDao bpmFlowUserHistoryDao;

    /**
     * 根据流程id和用户id查询流程历史记录
     * @param procDefId 流程定义id
     * @param userId 用户id
     */
    public List<BpmFlowUserHistory> queryAllHistoryByParams(String procDefId, String userId) {
        return bpmFlowUserHistoryDao.queryAllHistory(procDefId, userId);
    }
}
